package com.zheng.PointTest.base.response;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * className:BaseException
 * Package:com.zheng.PointTest.base
 * Description:
 *
 * @Author:ZhengJinLong Create:2024/7/3 - 21:56
 * @Version:v1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BaseException extends RuntimeException{

    private ResponseCode code;

    public BaseException(ResponseCode code) {
        this.code = code;
    }

    public BaseException(Throwable cause, ResponseCode code) {
        super(cause);
        this.code = code;
    }
}